import java.util.Scanner;

public class Main1322 {
    public static void main(String[] args) {
        Scanner sc=new Scanner(System.in);
        int n=sc.nextInt();
        if (n/1000000000!=0){
            System.out.println("shi yi");
        }else if(n/100000000!=0){
            System.out.println("yi");
        } else if (n/10000000!= 0) {
            System.out.println("qian wan");
        }else if (n/1000000!=0){
            System.out.println("bai wan");
        }else if(n/100000!=0){
            System.out.println("shi wan");
        }else if(n/10000!=0){
            System.out.println("wan");
        }
    }
}
